﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AChance.Dal.Func
{
    public static class DalConst
    {
        /// <summary>
        /// 数据库版本
        /// </summary>
        public static class SqlVer
        {
            /// <summary>
            /// 数据结构
            /// </summary>
            public const string DATA_STRUCT = "DataStruct";
            /// <summary>
            /// 数据结构版本
            /// </summary>
            public const int DATA_STRUCT_VER = 0;
            /// <summary>
            /// 数据索引
            /// </summary>
            public const string DATA_INDEX = "DataIndex";
            /// <summary>
            /// 数据索引版本
            /// </summary>
            public const int DATA_INDEX_VER = 0;
            /// <summary>
            /// 数据视图
            /// </summary>
            public const string DATA_VIEW = "DataView";
            /// <summary>
            /// 数据视图版本
            /// </summary>
            public const int DATA_VIEW_VER = 0;
            /// <summary>
            /// 数据存储过程
            /// </summary>
            public const string DATA_PROC = "DataProc";
            /// <summary>
            /// 数据存储过程版本
            /// </summary>
            public const int DATA_PROC_VER = 0;
            /// <summary>
            /// 数据触发器
            /// </summary>
            public const string DATA_TRIGGER = "DataTrigger";
            /// <summary>
            /// 数据触发器版本
            /// </summary>
            public const int DATA_TRIGGER_VER = 0;
        }
        /// <summary>
        /// 数据库参数化
        /// </summary>
        public static class SqlArg
        {
            /// <summary>
            /// 前缀
            /// </summary>
            public const string PREFIX = "<VA2Pu1Wa<";
            /// <summary>
            /// 后缀
            /// </summary>
            public const string SUFFIX = ">KFutZ3K7>";
        }
        /// <summary>
        /// 数据库操作模式
        /// </summary>
        public enum SqlOperMode
        {
            /// <summary>
            /// 无操作
            /// </summary>
            None,
            /// <summary>
            /// 只读操作
            /// </summary>
            ReadOnly,
            /// <summary>
            /// 读写操作
            /// </summary>
            ReadWrite
        }


    }
}
